package com.dhl.prototypepattern.prototype.shallowcopy;

/**
 * @title: ShallowTomTest
 * @Author danghailiang
 * @Date: 2022/7/28 21:19
 * @Version 1.0
 */
public class ShallowTomTest {
    public static void main(String[] args) throws CloneNotSupportedException {
        ShallowTom tom = new ShallowTom(1L,"大山杨");
        System.out.println(tom);
        System.out.println(tom.clone());
        System.out.println(tom.clone());
        System.out.println(tom.clone());
        System.out.println(tom.clone());
    }
}
